package com.xiaoyg.lession01.chapter17;

/**
 * interrupt具有清楚中断状态的功能。
 */
public class Run2 {

    public static void main(String[] args) {
        Thread.currentThread().interrupt();
        System.out.println("是否停止１？＝"+Thread.interrupted());
        System.out.println("是否停止２？＝"+Thread.interrupted());
        System.out.println("end!");
    }

}
